import java.net.InetSocketAddress;

import com.siao.example.socket.DataPack;
import com.siao.example.socket.DataResolver;
import com.siao.net.socket.SocketRequest;

public class SocketRequestExample {

	public static void main(String[] args) {
		DataPack data = new DataPack(2000, "HELLO".getBytes());

		new SocketRequest(new DataResolver()).post(new InetSocketAddress("localhost", 8888), data);

		// Object result = new SocketRequest(new DataResolver()).request(new
		// InetSocketAddress("localhost", 8888), data);
		// System.out.println(result);
	}

}
